package com.testmanager.testmananger.dataProvider;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/db")

public class DbWeb {

    @Autowired
    MyDbManager dbManager;

    @GetMapping("/save")
    public Map saveDb(@RequestParam("key")String key,@RequestParam("value")String value){
        dbManager.dbManager().put(key,value);
        return  dbManager.dbManager();

    }



}
